package com.windowes.weichang.controller.platform;

import com.windowes.weichang.common.ServerResponse;
import com.windowes.weichang.service.CaseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 *
 * @author: yangqing
 * @email: qing.yang@bangdao-tech.com
 * @createTime: 2018/6/24 下午7:10
 * @description:
 *
 **/
@Api(description = "案例相关API")
@RestController
@RequestMapping("cases")
public class CasesController {

    @Autowired
    CaseService caseService;

    @ApiOperation(value = "同城案例", notes = "【App】同城案例")
    @ApiImplicitParam(name = "region", value = "市/区,如：北京市", dataType = "string", paramType = "query")
    @GetMapping("list")
    public ServerResponse list(String region) {
        return caseService.list(region);
    }


}
